* A representation of a pilot-link socket. All pilot-link socket functions
* can be performed on these objects. When a DLP (Sync) connection is
* established via accept(), a Dlp object is returned.
*
* @see Dlp
* @author Kenneth Albanowski
*/
public class Socket {
int socket;
/**
* Construct a Socket from a domain/type/protocol three-tuple. Use
* values from constants for the arguments.
* @param domain the domain the socket needs to operate in. Please use constants.PI_AF_SLP, constants.PI_AF_INETSLP, or constants.AF_INET.
* @param type the type of socket to construct. Please use constants.PI_SOCK_STREAM or constants.PI_SOCK_RAW.
* @param protocol the protocol speaken by the socket. May be left zero, or use constants.PI_PF_SLP for a raw connection, or constants.PI_PF_PADP for a stream connection.
* @see constants
*/
public Socket(int domain, int type, int protocol) throws IOException